home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
print
/
gsview10.zip
/
gsview.h
< prev
next >
Wrap
C/C++ Source or Header
|
1993-08-05
|
15KB
|
473 lines
/*
* gsview.h -- Include file for GSVIEW.EXE
* Copyright (C) 1993 Russell Lang
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* Author: Russell Lang
* Internet: rjl@monu1.cc.monash.edu.au
*/
#define GSVIEW_VERSION "1.0 1993-08-05"
#define ID_ANSWER 51
#define ID_PROMPT 52
#define ID_HELP 53
#define IDM_OPEN 101
#define IDM_CLOSE 102
#define IDM_NEXT 103
#define IDM_NEXTSKIP 104
#define IDM_REDISPLAY 105
#define IDM_PREV 106
#define IDM_PREVSKIP 107
#define IDM_GOTO 108
#define IDM_INFO 109
#define IDM_SELECT 110
#define IDM_PRINT 111
#define IDM_PRINTTOFILE 112
#define IDM_SPOOL 113
#define IDM_EXTRACT 114
#define IDM_PSTOEPS 115
#define IDM_EXIT 116
#define IDM_DROP 117
#define IDM_SKIP 118
#define IDM_COPYCLIP 151
#define IDM_PASTETO 152
#define IDM_CONVERT 153
#define IDM_MAKEEPSI 154
#define IDM_MAKEEPST4 155
#define IDM_MAKEEPST 156
#define IDM_MAKEEPSW 157
#define IDM_EXTRACTPS 158
#define IDM_EXTRACTPRE 159
#define IDM_GSCOMMAND 175
#define IDM_SOUNDS 176
#define IDM_SETTINGS 177
#define IDM_SAVESETTINGS 178
#define IDM_SAFER 179
#define IDM_SAVEDIR 180
#define IDM_BUTTONSHOW 181
#define IDM_QUICK 182
#define IDM_AUTOREDISPLAY 183
#define IDM_EPSFCLIP 184
#define IDM_EPSFWARN 185
#define IDM_PORTRAIT 201
#define IDM_LANDSCAPE 202
#define IDM_UPSIDEDOWN 203
#define IDM_SEASCAPE 204
#define IDM_SWAPLANDSCAPE 205
#define IDM_RESOLUTION 251
#define IDM_LETTER 301
#define IDM_LETTERSMALL 302
#define IDM_TABLOID 303
#define IDM_LEDGER 304
#define IDM_LEGAL 305
#define IDM_STATEMENT 306
#define IDM_EXECUTIVE 307
#define IDM_A3 308
#define IDM_A4 309
#define IDM_A4SMALL 310
#define IDM_A5 311
#define IDM_B4 312
#define IDM_B5 313
#define IDM_FOLIO 314
#define IDM_QUARTO 315
#define IDM_10X14 316
#define IDM_USERSIZE 317
#define IDM_MEDIALAST 318
#define IDM_HELPCONTENT 351
#define IDM_HELPSEARCH 352
#define IDM_ABOUT 353
#define INFO_FILE 401
#define INFO_TYPE 402
#define INFO_TITLE 403
#define INFO_DATE 404
#define INFO_BBOX 405
#define INFO_ORIENT 406
#define INFO_ORDER 407
#define INFO_DEFMEDIA 408
#define INFO_NUMPAGES 409
#define INFO_PAGE 410
#define INFO_BITMAP 411
#define INFO_ICON 412
#define ABOUT_ICON 451
#define ABOUT_VERSION 452
#define SOUND_EVENT 501
#define SOUND_FILE 502
#define SOUND_PATH 503
#define SOUND_TEST 504
#define SPOOL_PORT 525
#define CANCEL_PCDONE 541
#define PAGE_LIST 551
#define PAGE_ALL 552
#define PAGE_ODD 553
#define PAGE_EVEN 554
#define DEVICE_NAME 561
#define DEVICE_RES 562
#define DEVICE_RESTEXT 563
#define DEVICE_PROP 564
#define PROP_NAME 571
#define PROP_VALUE 572
#define EPS_INTERCHANGE 581
#define EPS_WINDOWS 582
#define EPS_TIFF 583
#define BB_PROMPT 591
#define BB_CLICK 592
#define FILTER_PS 1
#define FILTER_EPS 2
#define FILTER_EPI 3
#define FILTER_ALL 4
#define FILTER_BMP 5
#define FILTER_TIFF 6
#define FILTER_WMF 7
#define IDS_FILTER 601
#define IDS_TITLE 602
#define IDS_HELPFILE 603
#define IDS_WRONGGS 604
#define IDS_BUSY 605
#define IDS_FILE 610
#define IDS_NOFILE 611
#define IDS_PAGE 612
#define IDS_NOPAGE 613
#define IDS_LANDSCAPE 614
#define IDS_PORTRAIT 615
#define IDS_ASCEND 616
#define IDS_DESCEND 617
#define IDS_SPECIAL 618
#define IDS_EPSF 619
#define IDS_EPSI 620
#define IDS_EPST 621
#define IDS_EPSW 622
#define IDS_DSC 623
#define IDS_NOTDSC 624
#define IDS_PAGEINFO 625
#define IDS_OUTPUTFILE 630
#define IDS_PRINTINGALL 631
#define IDS_PRINTFILE 632
#define IDS_NOSPOOL 633
#define IDS_SELECTPAGE 634
#define IDS_SELECTPAGES 635
#define IDS_TIMEOUT 636
#define IDS_NOTIMER 637
#define IDS_NOTOPEN 638
#define IDS_CANNOTRUN 639
#define IDS_TOOLONG 640
#define IDS_WAIT 641
#define IDS_NOMORE 642
#define IDS_GSCOMMAND 643
#define IDS_RES 644
#define IDS_USERWIDTH 645
#define IDS_USERHEIGHT 646
#define IDS_BADEPS 647
#define IDS_NOPREVIEW 648
#define IDS_NOTDFNAME 649
#define IDS_PIPEERR 650
#define IDS_CANCELDONE 651
#define IDS_BADCLI 652
#define IDS_SOUNDNAME 670
#define IDS_SNDPAGE 671
#define IDS_SNDNOPAGE 672
#define IDS_SNDNONUMBER 673
#define IDS_SNDNOTOPEN 674
#define IDS_SNDERROR 675
#define IDS_SNDTIMEOUT 676
#define IDS_SNDSTART 677
#define IDS_SNDEXIT 678
#define IDS_SOUNDNOMM 679
#define IDS_NONE 680
#define IDS_SPKR 681
/* help topics */
#define IDS_TOPICROOT 701
#define IDS_TOPICOPEN 702
#define IDS_TOPICPRINT 703
#define IDS_TOPICEDIT 704
#define IDS_TOPICGSCMD 705
#define IDS_TOPICSOUND 706
#define IDS_TOPICMEDIA 707
#define IDS_TOPICPSTOEPS 708
/* ps_to_eps */
#define IDS_BBPROMPT 750
#define IDS_BBPROMPT1 751
#define IDS_BBPROMPT2 752
#define IDS_BBPROMPT3 753
#define IDS_EPSONEPAGE 754
#define IDS_EPSQPAGES 755
#define IDS_EPSNOBBOX 756
#define IDS_EPSREAD 757
/* now the stuff that the resource compiler shouldn't see */
#ifndef RC_INVOKED
/* messages used between gsview and gswin */
#define WM_GSVIEW WM_USER+0
/* from gswin to gsview */
#define HWND_TEXT 0
#define HWND_IMGCHILD 1
#define GSWIN_CLOSE 2
#define SYNC_OUTPUT 3
#define OUTPUT_PAGE 4
#define SCROLL_POSITION 5
#define PIPE_REQUEST 6
/* from gsview to gswin image window */
#define NEXT_PAGE 10
#define COPY_CLIPBOARD 11
/* from gsview to gswin text window */
#define PIPE_DATA 12
#define MAXSTR 80
#define PROFILE_SIZE 2048
#define DEFAULT_GSCOMMAND "gswin"
#define DEFAULT_RESOLUTION 96.0
#define INIFILE "gsview.ini"
#define INISECTION "Options"
#define DEVSECTION "Devices"
extern char szAppName[MAXSTR]; /* application name - for title bar */
extern const char szClassName[]; /* window class */
extern const char szScratch[]; /* temporary filename prefix */
/* initialised in init.c */
extern BOOL is_win31; /* To allow selective use of win 3.1 features */
extern char szHelpName[MAXSTR]; /* buffer for building help filename */
extern char szHelpTopic[48]; /* topic for OFN_SHOWHELP */
extern UINT help_message; /* message sent by OFN_SHOWHELP */
extern HMENU hmenu; /* main menu */
extern HACCEL haccel; /* menu accelerators */
extern HCURSOR hcWait;
extern POINT img_offset; /* offset to gswin child window */
extern POINT info_file; /* position of file information */
extern POINT info_page; /* position of page information */
extern RECT info_rect; /* position and size of brief info area */
extern RECT info_coord; /* position and size of coordinate information */
extern RECT button_rect; /* position and size of button area */
extern HINSTANCE phInstance; /* instance of gsview */
extern HINSTANCE gswin_hinst; /* instance of gswin */
extern HWND hwndimg; /* gsview main window */
extern HWND hDlgModeless; /* any modeless dialog box */
extern HWND hwndtext; /* gswin text window */
extern HWND hwndimgchild; /* gswin image child window */
extern int bitmap_scrollx; /* offset from bitmap to origin of child window */
extern int bitmap_scrolly;
extern int bitmap_width; /* size of gswin bitmap in pixels */
extern int bitmap_height;
extern struct document *doc; /* DSC structure. NULL if not DSC */
extern int pagenum; /* current page number */
extern char dfname[MAXSTR]; /* name of selected document file */
extern FILE *dfile; /* selected file */
extern FILE *cfile; /* command file */
extern char efname[MAXSTR]; /* name of temp file extracted from DOS EPS file */